//@ts-ignore
import { createRouter, createWebHashHistory } from "vue-router";
import { constantsRoute } from "./routes";

//创建路由
const router = createRouter({
  history: createWebHashHistory(),
  strict: true,
  routes: constantsRoute,
  scrollBehavior: () => ({ left: 0, top: 0 }),
});

export default router;
